<template>
  <div>
    <zbTable
      ref="tableRef"
      :api-fun="get_value_card_recharge_list"
      @action="action"
    />
  </div>
</template>
<script setup>
  import { ref } from 'vue';
  import { message, Modal } from 'ant-design-vue';
  import { actionFn } from '@/utils/action.js';
  import { daochuFn } from '@/utils/daochu.js';
  import { PlusOutlined, UploadOutlined } from '@ant-design/icons-vue';
  import { useRouter } from 'vue-router';
  import zbTable from '@/components/zbTable/purchasePurchaseIndex.vue';
  import { get_value_card_recharge_list } from '@/api/order/value_card_recharge';
  // 是否显示编辑弹窗
  const tableRef = ref(null);
  const router = useRouter();
  const { push } = useRouter();

  const action = (data) => {
    console.log('data', data);
    if (data.action_data.type == 'detail') {
      push({
        path: '/order/refund_manage/detail',
        query: {
          refund_sn: data.row_data.refund_sn
        }
      });
    }
  };
</script>
